package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 设备信息表
 * </p>
 *
 * @author tww
 * @since 2020-12-10
 */
@Data
@TableName("c_device")
public class CDevice extends Model<CDevice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备序列号
     */
    @TableField("DEVICE_UID")
    private String deviceUid;

    /**
     * 设备名称
     */
    @TableField("DEVICE_NAME")
    private String deviceName;

    /**
     * 安装位置
     */
    @TableField("ADDRESS")
    private String address;

    /**
     * 资产编号
     */
    @TableField("ASSET_NUM")
    private String assetNum;

    /**
     * 设备型号
     */
    @TableField("EQUIP_MODEL")
    private String equipModel;

    /**
     * 内网ip
     */
    @TableField("INNER_IP")
    private String innerIp;

    /**
     * 外网ip
     */
    @TableField("OUTER_IP")
    private String outerIp;

    /**
     * 设备负责人
     */
    @TableField("MANAGE_USER")
    private String manageUser;

    /**
     * 联系方式
     */
    @TableField("MANAGE_TEL")
    private String manageTel;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    /**
     *  关联机构集合以，隔开
     *
     */
    @TableField(exist = false)
    private String ids;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getDeviceUid() {
        return deviceUid;
    }

    public void setDeviceUid(String deviceUid) {
        this.deviceUid = deviceUid;
    }
    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getAssetNum() {
        return assetNum;
    }

    public void setAssetNum(String assetNum) {
        this.assetNum = assetNum;
    }
    public String getEquipModel() {
        return equipModel;
    }

    public void setEquipModel(String equipModel) {
        this.equipModel = equipModel;
    }
    public String getInnerIp() {
        return innerIp;
    }

    public void setInnerIp(String innerIp) {
        this.innerIp = innerIp;
    }
    public String getOuterIp() {
        return outerIp;
    }

    public void setOuterIp(String outerIp) {
        this.outerIp = outerIp;
    }
    public String getManageUser() {
        return manageUser;
    }

    public void setManageUser(String manageUser) {
        this.manageUser = manageUser;
    }
    public String getManageTel() {
        return manageTel;
    }

    public void setManageTel(String manageTel) {
        this.manageTel = manageTel;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    @Override
    public String toString() {
        return "CDevice{" +
        "id=" + id +
        ", deviceUid=" + deviceUid +
        ", deviceName=" + deviceName +
        ", address=" + address +
        ", assetNum=" + assetNum +
        ", equipModel=" + equipModel +
        ", innerIp=" + innerIp +
        ", outerIp=" + outerIp +
        ", manageUser=" + manageUser +
        ", manageTel=" + manageTel +
        ", createTime=" + createTime +
        ", status=" + status +
        "}";
    }
}
